<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateStorehousesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
		Schema::create('storehouses',function($table){
			$table->increments('id');
			$table->string('名称',20);
			$table->string('地址',20);
			$table->integer('最大容量')->unsigned();
			$table->integer('剩余容量')->unsigned();
		    $table->softDeletes();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
		Schema::drop('storehouses');
	}

}
